// FlagBox.h: interface for the CFlagBox class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLAGBOX_H__E79E5FD4_A9A4_11D2_9481_00C04F9902DF__INCLUDED_)
#define AFX_FLAGBOX_H__E79E5FD4_A9A4_11D2_9481_00C04F9902DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MyAddressListBox.h"

class CFlagBox : public CMyAddressListBox  
{
public:
	void ToggleFlag();
	void SetFlagValue(int nIndex,byte data);
	char * GetFlagName(int nIndex);
	byte GetFlagValue(int nIndex);
	int RefreshStrings(int addr=0,BOOL bCheckModified=TRUE);
	virtual void SetIndividualProperty();
	void Init();
	CFlagBox();
	virtual ~CFlagBox();

	virtual void IncrementData();
	virtual void DecrementData();

    // This array stores the previous values in the register.  
    // This is used by display functions to highlight modified register values
    int *m_aNewValue;  
private:
	virtual void EnterData();
};

#endif // !defined(AFX_FLAGBOX_H__E79E5FD4_A9A4_11D2_9481_00C04F9902DF__INCLUDED_)
